package com.ylw.erweima;

/**
 * Created by yangliwei on 2017/8/21.
 */
public class Demo2 {
    public static void main(String[] args) throws Exception {

        //生成带logo 的二维码
        String text = "http://my.csdn.net/ljheee";
        QRCodeUtil.encode(text, "C:\\Users\\Administrator\\Desktop\\德信\\积分兑换\\新建文件夹\\drawable-xhdpi\\jia.png", "F:\\ideaPoeject\\functionUtil\\src\\main\\tempfile\\", true);

        //生成不带logo 的二维码
//        String textt = "http://www.baidu.com";
//        QRCodeUtil.encode(textt,"","d:/WPS",true);

        //指定二维码图片，解析返回数据
//        System.out.println(QRCodeUtil.decode("D:/WPS/75040887.jpg"));

    }
}
